projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373d798
)
arm: zynq: Fix timer loadaddress
author
Michal Simek
<
[email protected]
>
Wed, 28 Aug 2013 05:36:31 +0000
(07:36 +0200)
committer
Albert ARIBAUD
<
[email protected]
>
Mon, 23 Sep 2013 14:26:32 +0000
(16:26 +0200)
Reload address was written to the counter register
instead of load register.
The problem happens when timer expires but never
reload to ~0UL (it is downcount timer).
Reported-by: Stephen MacMahon <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
arch/arm/cpu/armv7/zynq/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/zynq/timer.c
b/arch/arm/cpu/armv7/zynq/timer.c
index 0133565299fbb89e4c1a96d51edef54eaaebb5a2..3b8d9497a0d2bab665c37b000625d778a0c749e9 100644
(file)
--- a/
arch/arm/cpu/armv7/zynq/timer.c
+++ b/
arch/arm/cpu/armv7/zynq/timer.c
@@
-57,7
+57,7
@@
int timer_init(void)
SCUTIMER_CONTROL_ENABLE_MASK;
/* Load the timer counter register */
- writel(0xFFFFFFFF, &timer_base->
counter
);
+ writel(0xFFFFFFFF, &timer_base->
load
);
/*
* Start the A9Timer device